#pragma once

#include "SingerCover.h"

enum
{
    SCROLL_LEFT = -1,
    SCROLL_RIGHT = 1,
    SCROLL_STOP = 0
};

enum
{
    PUSH_FRONT = 0,
    PUSH_BACK =  1
};


class VPicture;
class VSingerCoverEffect;

class CSingerCoverData
{
    friend class VSingerCoverEffect;
public:
    CSingerCoverData(void);
    ~CSingerCoverData(void);

    void AddCoverFront(singer_t* singer);
    void AddCoverBack(singer_t* singer);

    void RemoveCoverFront();
    void RemoveCoverBack();

    void GetDataFromDataBase(int nType);

    void SetDirection(int nDirection);

    void FlushDeque();

    bool GetFlushState();

    void autoSetPosition();
    void setItemPosition(size_t pos, size_t size);

protected:
    int  m_CenterIndex;
    int  m_Direction;
    bool m_bFlushing;
};
